package com.yunjijia.service.impl;

import com.yunjijia.mapper.RolePermissionMapper;
import com.yunjijia.pojo.RolePermission;
import com.yunjijia.service.IRolePermissionService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RolePermissionServiceImpl implements IRolePermissionService {

    @Resource
    private RolePermissionMapper rolePermissionMapper;

    @Override
    public List<RolePermission> getPermissionsByroleid(int roleid) {
        return rolePermissionMapper.getPermissionsByroleid(roleid);
    }
}
